package action.main;

import java.util.List;
import service.MainService;
import entity.Category;

public class ListCategoryAction {
	//output
	private List<Category> cates;
	//injection
	private MainService mainService;
	public void setMainService(MainService mainService) {
		this.mainService = mainService;
	}
	
	public String execute() throws Exception{
		cates=mainService.findLeftCategory();
		return "success";
	}

	public List<Category> getCates() {
		return cates;
	}

	public void setCates(List<Category> cates) {
		this.cates = cates;
	}
	
}
